<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=category&act=list&sysgroupid={:$sysgroupid}">{:$groupname}</a> &raquo; 内容排序</p><!-- inc:position.fr --></div>

<script src="js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<script src="js/idrag.js" type="text/javascript"></script>
<script language="javascript">
 function changese(obj){
  window.location.href="{:$mainlink}?file=msg&act=neworderlist&sysgroupid={:$sysgroupid}&cateid="+obj.value;
 }
 function changese_Otherid(obj){
  window.location.href="{:$mainlink}?file=msg&act=neworderlist&sysgroupid={:$sysgroupid}&otherid="+obj.value+"&cateid="+"{:$cateid}";
 }
 function changese_Back(){
  window.location.href="{:$mainlink}?file=msg&act=neworderlist&sysgroupid={:$sysgroupid}&cateid="+"{:$cateid}";
 }
</script>
	
<table class="stable">
  <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;分类：</td>
    <td>
      <select name="cateid" id="cateid" onchange="changese(this)">
        <option value="0">选择分类...</option>
        <!-- $catelist AS $key=>$value -->
        <!-- if($value[parentid]==0) -->
        <!-- else -->
        <option value="{:$value[id]}" {if($cateid == $value[id])} selected{end}>{:$value[space]}{:$value[catename]}</option>
        <!-- end -->
        <!-- end -->
      </select>
      
      附加图片分类：
      <select name="Otherid" id="Otherid" onchange="changese_Otherid(this)">
        <option value="0">选择分类...</option>
        <!-- $msglist AS $key=>$value -->
        <option value="{:$value[id]}" {if($otherid == $value[id])} selected{end}>{:$value[subject]}</option>
        <!-- end -->
      </select>
      <!-- if($otherid) --><button class="gbutton gbutton_min" type="button" onclick="changese_Back()">后退</button><!-- end -->
      &nbsp;<font color="#ff0000">（选择相应类别，对所属内容进行排序，默认不"选择分类"为首页所有产品排序，如不需要对附加图进行排序则不必选择）</font>
    </td>
  </tr>
</table>

<div class="page_pad">
  <div class="content_add"><button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=msg&act=orderlist&sysgroupid={:$sysgroupid}{if($otherid)}&otherid={:$otherid}{end}{if($cateid)}&cateid={:$cateid}{end}')">列表显示</button></div>
  
  <form action="{:$mainlink}?file=msg&act=neworderbyok&sysgroupid={:$sysgroupid}&cateid={:$cateid}&otherid={:$otherid}" method="post">
  <div class="content_box">
    <div class="content_bor">
      <div id="module_list">
        <!-- $msglist AS $key=>$value -->
        <div class="modules {if($value[row_index]%2==0)}modules_even{end}">
          <div class="bor">
            <div class="pad">
              <div class="m_move">
              <!-- if($cateid) -->
              <input type="hidden" name="sortid[]" value="{:$value[id]}" />
              <!-- else -->
              <input type="hidden" name="allsortid[]" value="{:$value[id]}" />
              <!-- end -->
              <div class="m_title">
                <div class="fl"><a href="{if($value[thumbfile])}{:$value[folder]}{:$value[thumbfile]}{else}javascript:void(0){end}" target="_blank"><img src="{:$value[folder]}{:$value[thumbfile]}" /></a></div>
                <div class="fr">{:$value[subject]}</div>
                <div class="clear"></div>
              </div>
              </div>
            </div>
          </div>
        </div>
        <!-- end -->
        <!-- run:unset($msglist) -->
        <div class="clear"></div>
      </div><!--module_list-->
    </div>
  </div><!--content_box-->
  
  <div class="gbutton_div"><button type="submit" class="gbutton gbutton_dblue gbutton_add" id="creat_button">提交</button> &nbsp; <button type="button" class="gbutton gbutton_add" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}&proID={:$otherid}&cateid={:$cateid}')">返回</button></div>
  </form>
</div><!--page_pad-->

<!-- inc:frame.bottom -->